# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-flask-compress
_pkgorig=Flask-Compress
pkgver=1.12
pkgrel=0
pkgdesc="Compress responses of your Flask application"
url="https://github.com/colour-science/flask-compress"
arch="noarch"
license="MIT"
depends="python3 py3-brotli py3-flask"
makedepends="py3-setuptools py3-setuptools_scm py3-build py3-installer py3-wheel"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/F/Flask-Compress/Flask-Compress-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 -m build --wheel --no-isolation
}

check() {
	python3 -m pytest
}

package() {
	python3 -m installer --destdir="$pkgdir" dist/*.whl
}

sha512sums="
5712aff44aaaa379656e03f7b63fdef727721245cb9329e698a2e25aefca21a77202f5eb0c5f5828395647c694a5b417778a7b5db9eb592753a979d3994603a5  py3-flask-compress-1.12.tar.gz
"
